package com.china08.yxyapi.entity.mg.huodong.healthcompetition;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 中小学健康知识答题.
 */
@SuppressWarnings("serial")
// @Entity
// @Table(name = "yxy_competition_student_answer", catalog = "yxy_huodong",
// uniqueConstraints = {
// @UniqueConstraint(columnNames = { "student_id", "paper_num", "ques_order" })
// })
@Document(collection = "yxy.huodong.competition.student.answer")
public class YxyCompetitionStudentAnswer extends MongoBaseEntityNoId {

    @Id
    private String id;
    // @Column(name = "student_id", columnDefinition = "varchar(32) comment
    // '序列id' ")
    @Indexed
    @Field(value = "student_id")
    private String studentId;

    // @Column(name = "paper_num", columnDefinition = "varchar(32) comment
    // '试卷编号' ")
    @Field(value = "paper_num")
    private String paperNum;

    // @Column(name = "ques_order", columnDefinition = "int comment '试题号' ")
    @Field(value = "ques_order")
    private Integer quesOrder;

    // @Column(columnDefinition = "varchar(32) comment '试题答案' ")
    @Field(value = "ques_answer")
    private String quesAnswer;
    // @Column(columnDefinition = "varchar(32) comment '我的答案' ")
    @Field(value = "my_answer")
    private String myAnswer;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the studentId
     */
    public String getStudentId() {
        return studentId;
    }

    /**
     * @param studentId
     *            the studentId to set
     */
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    /**
     * @return the paperNum
     */
    public String getPaperNum() {
        return paperNum;
    }

    /**
     * @param paperNum
     *            the paperNum to set
     */
    public void setPaperNum(String paperNum) {
        this.paperNum = paperNum;
    }

    /**
     * @return the quesOrder
     */
    public Integer getQuesOrder() {
        return quesOrder;
    }

    /**
     * @param quesOrder
     *            the quesOrder to set
     */
    public void setQuesOrder(Integer quesOrder) {
        this.quesOrder = quesOrder;
    }

    /**
     * @return the quesAnswer
     */
    public String getQuesAnswer() {
        return quesAnswer;
    }

    /**
     * @param quesAnswer
     *            the quesAnswer to set
     */
    public void setQuesAnswer(String quesAnswer) {
        this.quesAnswer = quesAnswer;
    }

    /**
     * @return the myAnswer
     */
    public String getMyAnswer() {
        return myAnswer;
    }

    /**
     * @param myAnswer
     *            the myAnswer to set
     */
    public void setMyAnswer(String myAnswer) {
        this.myAnswer = myAnswer;
    }

}
